<h1>Listing borrow_items</h1>

<table>
  <tr>
    <th>User</th>
    <th>Book</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @borrow_items.each do |borrow_item| %>
  <tr>
    <td><%= borrow_item.user_id %></td>
    <td><%= borrow_item.book_id %></td>
    <td><%= link_to 'Show', borrow_item %></td>
    <td><%= link_to 'Edit', edit_borrow_item_path(borrow_item) %></td>
    <td><%= link_to 'Destroy', borrow_item, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Borrow item', new_borrow_item_path %>
